package com.chw.shop.controller;

import com.chw.common.returnData.ReturnData;
import com.chw.shop.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("shop")
public class ShopController {
    @Autowired
    private ShopService service;
    @RequestMapping("queryShop")
    public ReturnData queryShop(Integer id,Integer page,Integer size,Integer brandId){
        return ReturnData.success(service.queryShop(id,page,size,brandId));

    }
    @RequestMapping("selectShop")
    public ReturnData selectShop(Integer id){
        return ReturnData.success(service.selectShop(id));

    }
}
